package com.gexiaobao.pigeon.ui.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.gexiaobao.pigeon.R
import com.gexiaobao.pigeon.app.model.bean.MemberInfoResponse

/**
 * @Author      : hxw
 * @Date        : 2023/3/2 11:22
 * @Describe    :
 */
class MemberInfoAdapter(data: ArrayList<MemberInfoResponse.ListData>) :
    BaseQuickAdapter<MemberInfoResponse.ListData, BaseViewHolder>(R.layout.item_member_info) {

    override fun convert(holder: BaseViewHolder, item: MemberInfoResponse.ListData) {
        holder.setText(R.id.tv_item_member_info_name, context.getString(R.string.Participants_list) + ": " + item.entryName)
        holder.setText(
            R.id.tv_item_member_info_phone,
            context.getString(R.string.activity_mine_account_check_tonglian_signed_tel) + ": " + item.mobile
        )
        holder.setText(
            R.id.tv_item_member_info_shed_no,
            context.getString(R.string.activity_race_detail_pigeon_collection_member_no) + ": " + item.shedNo
        )
    }
}